package day1108.factory.simple;

/**
 * @author Mr.ma
 * @since 2022/11/8 20:03
 * 工厂设计模式分为三类：简单工厂模式，工厂方法模式，抽象工厂模式
 **/
public class Test {
    public static void main(String[] args) {
        ThinkPad thinkPad = ThinkPadFactory.getThinkPad("T460");
        thinkPad.play();
        ThinkPad thinkPad01 = ThinkPadFactory.getThinkPad("S670");
        thinkPad01.play();
    }
}
